// components/song-menu-area/index.js

const app = getApp()

Component({
	/**
	 * 组件的属性列表
	 */
	properties: {
		hotSonMenu: {
			type: Array,
			value: []
		},
		title: {
			type: String,
			value: ''
		}
	},

	data: {
		screenWidth: app.globalData.screenWidth,
		screenHeight: app.globalData.screenHeight
	},

	methods: {
		songItemClick(event) {
			const item = event.currentTarget.dataset.item
			wx.navigateTo({
				url: `/packageDetail/pages/detail-songs/index?id=${item.id}&type=id`
			})
		}
	}	
})
